package com.zjt.entity;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-23
 * Time: AM6:50
 * 举报中心
 * To change this template use File | Settings | File Templates.
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_report")
public class Report extends BaseEntity{
    private long userId;   //用户id  clientuser表
    private String address; //举报地址 [可以为空]
    private String lat; //地址纬度 [可以为空]
    private String lng; //地址经度 [可以为空]
    private String content;  //举报内容
    private Integer type;//举报类型   0 工商，假昌等   由后台管理员定义，将来扩展举报输出接口用

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Report{" +
                "userId=" + userId +
                ", address='" + address + '\'' +
                ", lat='" + lat + '\'' +
                ", lng='" + lng + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                '}';
    }
}
